package com.moon.admin.sys.domain.vo;

import lombok.Data;

/**
 * 路由显示信息
 * 
 * @author moon
 */
@Data
public class MetaVO {
    /**
     * 设置该路由在侧边栏和面包屑中展示的名字
     */
    private String title;

    /**
     * 设置该路由的图标，对应路径src/assets/icons/svg
     */
    private String icon;

    /**
     * 设置为true，则不会被 <keep-alive>缓存
     */
    private boolean noCache;

    /**
     * 所属模块
     */
    private Integer moduleId;

    public MetaVO() {}

    public MetaVO(String title, String icon, Integer moduleId) {
        this.title = title;
        this.icon = icon;
        this.moduleId = moduleId;
    }

    public MetaVO(String title, String icon, boolean noCache, Integer moduleId) {
        this.title = title;
        this.icon = icon;
        this.noCache = noCache;
        this.moduleId = moduleId;
    }
}
